<?php
namespace app\index\model;

use think\Model;
use think\DB;

class Goods extends Model
{
    public function getGoodsList($page){
        return DB::name('goods')->page("$page,4")->select();
    }

    public function getGoodsCount(){
        return DB::name('goods')->count();
    }
}